<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">开发管理</h1>
</div>
<toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      渠道统计管理
    </div>
    <div class="panel-body b-b b-light">
      <div class="form-group pull-in clearfix">
      	<div class="col-sm-12">
	        <p>
            渠道名称: <input id="filter" type="text" ng-model="channelData.title" class="form-control input-sm w-sm inline m-r">
		        渠道描述: <input id="filter" type="text" ng-model="channelData.description" class="form-control input-sm w-sm inline m-r">
		        <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="querychannel()">查询</button>
            <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
	        </p>  
	    </div>
        <div class="col-sm-1">
          <button class="btn btn-info btn-addon" ng-click="addchannel()">添加</button>
        </div>
        <!-- <div class="col-sm-1">
          <button class="btn btn-info btn-addon" ng-click="delcache()">清除缓存</button>
        </div>
      </div> -->
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="">渠道ID</th>
            <th style="">渠道名称</th>
            <th style="">渠道描述</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="channelList=='' || channelList==null">
            <td colspan="9">当前无任何数据</td>
          </tr>
          <tr ng-if="channelList!=''" ng-repeat="obj in channelList">
            <td ng-bind="obj.Id"></td>
            <td ng-bind="obj.Name"></td>
            <td ng-bind="obj.Description"></td>
            <td>
              <button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="editchannel(obj.Id)">修改</button>
              <!-- <button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="delchannel(obj.Id)">删除</button> -->
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
   <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{channelData.pageIndex}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="channelTotal+'条数据'"></span></span>
  </div>
</div>
